#pragma once

#include <QWidget>

class QCheckBox;
class QLineEdit;
class QComboBox;
class QSpinBox;
class QPushButton;

class ScreenshotSettingsWidget : public QWidget {
    Q_OBJECT
public:
    explicit ScreenshotSettingsWidget(QWidget* parent = nullptr);

signals:
    void sigClose();

private slots:
    void onBrowsePath();
    void onApply();
    void onFormatChanged(int);

private:
    void loadFromConfig();

    QCheckBox* chkAutoCopy;
    QCheckBox* chkAutoSave;
    QLineEdit* editPath;
    QPushButton* btnBrowse;
    QLineEdit* editFileName;
    QComboBox* comboFormat;
    QSpinBox* spinJpegQuality;
    QPushButton* btnApply;
};

